//
//  BaseView.h
//  LotteryClient
//
//  Created by Suny on 14-7-13.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BaseViewDelegate <NSObject>

@optional
- (void)viewDidAddSubview:(UIView *)view;
- (void)viewDidBringSubviewToFront:(UIView *)view;

@end

@interface BaseView : UIView

@property (nonatomic, weak) id<BaseViewDelegate> delegate;
@property (nonatomic, assign) BOOL suppressDelegate;

// 禁用delegate，防止死循环
- (void)suppressDelegateForAction:(void(^)(void))actionBlock;

@end